﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200137D RID: 4989
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeQuestOptionalRewardCsReq : IMessage<TakeQuestOptionalRewardCsReq>, IMessage, IEquatable<TakeQuestOptionalRewardCsReq>, IDeepCloneable<TakeQuestOptionalRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003EE7 RID: 16103
		// (get) Token: 0x0600DF5F RID: 57183 RVA: 0x002556D5 File Offset: 0x002538D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeQuestOptionalRewardCsReq> Parser
		{
			get
			{
				return TakeQuestOptionalRewardCsReq._parser;
			}
		}

		// Token: 0x17003EE8 RID: 16104
		// (get) Token: 0x0600DF60 RID: 57184 RVA: 0x002556DC File Offset: 0x002538DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeQuestOptionalRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EE9 RID: 16105
		// (get) Token: 0x0600DF61 RID: 57185 RVA: 0x002556EE File Offset: 0x002538EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeQuestOptionalRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DF62 RID: 57186 RVA: 0x002556F5 File Offset: 0x002538F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestOptionalRewardCsReq()
		{
		}

		// Token: 0x0600DF63 RID: 57187 RVA: 0x002556FD File Offset: 0x002538FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestOptionalRewardCsReq(TakeQuestOptionalRewardCsReq other) : this()
		{
			this.optionalRewardId_ = other.optionalRewardId_;
			this.questId_ = other.questId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DF64 RID: 57188 RVA: 0x0025572E File Offset: 0x0025392E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestOptionalRewardCsReq Clone()
		{
			return new TakeQuestOptionalRewardCsReq(this);
		}

		// Token: 0x17003EEA RID: 16106
		// (get) Token: 0x0600DF65 RID: 57189 RVA: 0x00255736 File Offset: 0x00253936
		// (set) Token: 0x0600DF66 RID: 57190 RVA: 0x0025573E File Offset: 0x0025393E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionalRewardId
		{
			get
			{
				return this.optionalRewardId_;
			}
			set
			{
				this.optionalRewardId_ = value;
			}
		}

		// Token: 0x17003EEB RID: 16107
		// (get) Token: 0x0600DF67 RID: 57191 RVA: 0x00255747 File Offset: 0x00253947
		// (set) Token: 0x0600DF68 RID: 57192 RVA: 0x0025574F File Offset: 0x0025394F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint QuestId
		{
			get
			{
				return this.questId_;
			}
			set
			{
				this.questId_ = value;
			}
		}

		// Token: 0x0600DF69 RID: 57193 RVA: 0x00255758 File Offset: 0x00253958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeQuestOptionalRewardCsReq);
		}

		// Token: 0x0600DF6A RID: 57194 RVA: 0x00255766 File Offset: 0x00253966
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeQuestOptionalRewardCsReq other)
		{
			return other != null && (other == this || (this.OptionalRewardId == other.OptionalRewardId && this.QuestId == other.QuestId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DF6B RID: 57195 RVA: 0x002557A4 File Offset: 0x002539A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.OptionalRewardId != 0U)
			{
				num ^= this.OptionalRewardId.GetHashCode();
			}
			if (this.QuestId != 0U)
			{
				num ^= this.QuestId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DF6C RID: 57196 RVA: 0x002557FC File Offset: 0x002539FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DF6D RID: 57197 RVA: 0x00255804 File Offset: 0x00253A04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DF6E RID: 57198 RVA: 0x00255810 File Offset: 0x00253A10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.OptionalRewardId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.OptionalRewardId);
			}
			if (this.QuestId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.QuestId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DF6F RID: 57199 RVA: 0x00255868 File Offset: 0x00253A68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.OptionalRewardId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionalRewardId);
			}
			if (this.QuestId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.QuestId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DF70 RID: 57200 RVA: 0x002558C0 File Offset: 0x00253AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeQuestOptionalRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.OptionalRewardId != 0U)
			{
				this.OptionalRewardId = other.OptionalRewardId;
			}
			if (other.QuestId != 0U)
			{
				this.QuestId = other.QuestId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DF71 RID: 57201 RVA: 0x00255910 File Offset: 0x00253B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DF72 RID: 57202 RVA: 0x0025591C File Offset: 0x00253B1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 32U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.QuestId = input.ReadUInt32();
					}
				}
				else
				{
					this.OptionalRewardId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400587F RID: 22655
		private static readonly MessageParser<TakeQuestOptionalRewardCsReq> _parser = new MessageParser<TakeQuestOptionalRewardCsReq>(() => new TakeQuestOptionalRewardCsReq());

		// Token: 0x04005880 RID: 22656
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005881 RID: 22657
		public const int OptionalRewardIdFieldNumber = 1;

		// Token: 0x04005882 RID: 22658
		private uint optionalRewardId_;

		// Token: 0x04005883 RID: 22659
		public const int QuestIdFieldNumber = 4;

		// Token: 0x04005884 RID: 22660
		private uint questId_;
	}
}
